import java.awt.Frame;
import java.awt.Image;


//Block情報を返すのはここ

public class Block extends Frame{
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	Image block;

	public Image randomize(int rand) {
		switch (rand) {
		case 0:
			block = getToolkit().getImage("img/Block1.png");
			return block;
		case 1:
			block = getToolkit().getImage("img/Block2.png");
			return block;
		case 2:
			block = getToolkit().getImage("img/Block3.png");
			return block;
		case 3:
			block = getToolkit().getImage("img/Block4.png");
			return block;
		case 4:
			block = getToolkit().getImage("img/Block5.png");
			return block;
		case 5:
			block = getToolkit().getImage("img/Block6.png");
			return block;
		case 6:
			block = getToolkit().getImage("img/Block7.png");
			return block;
		default :
			return null;
		}
	}
}